package com.lovo.service.impl;

import com.lovo.bean.Page;
import com.lovo.bean.Student;
import com.lovo.dao.StudentDAO;
import com.lovo.dao.impl.StudentDAOImpl;
import com.lovo.service.StudentService;

public class StudentServiceImpl implements StudentService {
    private StudentDAO studentDAO = new StudentDAOImpl();
    @Override
    public Page<Student> findByPage(int current,String name,String className,String addr) {
        return studentDAO.findByPage(current,name,className,addr);
    }

    @Override
    public Student findById(int id) {
        return studentDAO.findById(id);
    }


    @Override
    public int insert(Student student) {
        return studentDAO.insert(student);
    }

    @Override
    public int update(Student student) {
        return studentDAO.update(student);
    }
}
